package tableGeorg;

public class Average extends Value{
	
	double first = 0, second = 0, result = 0;

	public Average(Value a, Value b) {
		if (a == null) {
			a = new NullValue();
		}
		if (b == null) {
			b = new NullValue();
		}
		first = a.evaluate();
		second = b.evaluate();
		result=((first+second)/2);
	}

	public double evaluate() {
		return result;
	}
}


